package com.yuhanginfo.modules.web.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.yuhanginfo.common.persistence.WebDataEntity;
import com.yuhanginfo.common.utils.StringUtils;
import com.yuhanginfo.common.utils.excel.annotation.ExcelField;

public class WebGoods extends WebDataEntity<WebGoods> {
	private static final long serialVersionUID = 1L;
	/**
	 * 商店类型（1自营，2第三方）
	 */
	private String storeType;
	
	//物料号
	private String code;
	private String stu;
	public String getStu() {
		return stu;
	}
	public void setStu(String stu) {
		this.stu = stu;
	}
	//厂家编号
	private String venderCode;
	public String getVenderCode() {
		return venderCode;
	}
	public void setVenderCode(String venderCode) {
		this.venderCode = venderCode;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 图片路径
	 */
	private String image;
	/**
	 * 商品图片List
	 */
	private List<String> imgList;
	/**
	 * 商品详情
	 */
	private String detailImg;
	/**
	 * 商品详情List
	 */
	private List<String> detailImgList;
	
	/**
	 * 售后服务图片
	 */
	private String serviceImg;
	/**
	 * 售后服务图片List
	 */
	private List<String> serviceImgList;
	/**
	 * 商品名称
	 */
	private String cnName;
	/**
	 * 商品编号
	 */
	private String goodsCode;
	/**
	 * 门店编号
	 */
	private String storeCode;
	/**
	 * 店名
	 */
	private String storeName;
	/**
	 * 库存数量
	 */
	private Integer storeStock;
	/**
	 * 配件编号
	 */
	private String partCode;
	/**
	 * 普通价格
	 */
	private BigDecimal price;
	/**
	 * 会员价格
	 */
	private BigDecimal vipPrice;
	/**
	 * 制造商名称
	 */
	private String venderName;
	/**
	 * 适用车型
	 */
	private List<String> carList;
	/**
	 * 门店区域
	 */
	private String areaName;
	/**
	 * 商品状态
	 */
	private Integer status;
	/**
	 * 门店状态（0失效，1有效）
	 */
	private Integer storeStatus;
	
	/**
	 * 商品介绍(富文本内容)
	 */
	private String goodsIntroduce;
	
	private Integer goodsNum;
	
	private String failReason;
	
	private String videoUrl;
	
	//商品搜索条件
	private String carBarand;
	private String venderType;
	private String isgoodsNum;
	private String firstClassId;
	private String secondClassId;
	private String thirdClassId;
	private String searchContent;
	private String carCode;
	private String carYear;
	private List<String> ids;
	
	
	public String getFailReason() {
		return failReason;
	}
	public void setFailReason(String failReason) {
		this.failReason = failReason;
	}
	@ExcelField(title="数量", align=1, sort=3)
	public Integer getGoodsNum() {
		return goodsNum;
	}
	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}
	@ExcelField(title="编号", align=1, sort=2)
	public String getPartsCode() {
		return partsCode;
	}
	public void setPartsCode(String partsCode) {
		this.partsCode = partsCode;
	}
	private String partsCode;
	
	public String getStoreType() {
		return storeType;
	}
	public void setStoreType(String storeType) {
		this.storeType = storeType;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	
	@ExcelField(title="商品名称", align=1, sort=1)
	public String getCnName() {
		return cnName;
	}
	public void setCnName(String cnName) {
		this.cnName = cnName;
	}
	public String getStoreName() {
		return storeName;
	}
	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}
	public Integer getStoreStock() {
		return storeStock;
	}
	public void setStoreStock(Integer storeStock) {
		this.storeStock = storeStock;
	}
	public String getPartCode() {
		return partCode;
	}
	public void setPartCode(String partCode) {
		this.partCode = partCode;
	}
	public List<String> getCarList() {
		return carList;
	}
	public void setCarList(List<String> carList) {
		this.carList = carList;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public BigDecimal getVipPrice() {
		return vipPrice;
	}
	public void setVipPrice(BigDecimal vipPrice) {
		this.vipPrice = vipPrice;
	}
	public String getVenderName() {
		return venderName;
	}
	public void setVenderName(String venderName) {
		this.venderName = venderName;
	}
	public String getStoreCode() {
		return storeCode;
	}
	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}
	public String getGoodsCode() {
		return goodsCode;
	}
	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}
	public String getDetailImg() {
		return detailImg;
	}
	public void setDetailImg(String detailImg) {
		this.detailImg = detailImg;
	}
	public String getServiceImg() {
		return serviceImg;
	}
	public void setServiceImg(String serviceImg) {
		this.serviceImg = serviceImg;
	}
	public String getAreaName() {
		return areaName;
	}
	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	public List<String> getImgList() {
		if(StringUtils.isNotBlank(image)) {
			String[] im=image.split(";");
			return Arrays.asList(im);
		}else {
			this.imgList = new ArrayList<String>();
			return imgList;
		}
		
	}
	public void setImgList(List<String> imgList) {
		this.imgList = imgList;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public List<String> getDetailImgList() {
		if(StringUtils.isNotBlank(detailImg)) {
			String[] im=detailImg.split(";");
			return Arrays.asList(im);
		}else {
			this.detailImgList = new ArrayList<String>();
			return detailImgList;
		}
	}
	
	public void setDetailImgList(List<String> detailImgList) {
		this.detailImgList = detailImgList;
	}
	
	public List<String> getServiceImgList() {
		if(StringUtils.isNotBlank(serviceImg)) {
			String[] im=serviceImg.split(";");
			return Arrays.asList(im);
		}else {
			this.serviceImgList = new ArrayList<String>();
			return serviceImgList;
		}
	}
	public void setServiceImgList(List<String> serviceImgList) {
		this.serviceImgList = serviceImgList;
	}
	public String getVideoUrl() {
		return videoUrl;
	}
	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}
	public Integer getStoreStatus() {
		return storeStatus;
	}
	public void setStoreStatus(Integer storeStatus) {
		this.storeStatus = storeStatus;
	}
	public String getCarBarand() {
		return carBarand;
	}
	public void setCarBarand(String carBarand) {
		this.carBarand = carBarand;
	}
	public String getVenderType() {
		return venderType;
	}
	public void setVenderType(String venderType) {
		this.venderType = venderType;
	}
	public String getIsgoodsNum() {
		return isgoodsNum;
	}
	public void setIsgoodsNum(String isgoodsNum) {
		this.isgoodsNum = isgoodsNum;
	}
	public String getFirstClassId() {
		return firstClassId;
	}
	public void setFirstClassId(String firstClassId) {
		this.firstClassId = firstClassId;
	}
	public String getSecondClassId() {
		return secondClassId;
	}
	public void setSecondClassId(String secondClassId) {
		this.secondClassId = secondClassId;
	}
	public String getThirdClassId() {
		return thirdClassId;
	}
	public void setThirdClassId(String thirdClassId) {
		this.thirdClassId = thirdClassId;
	}
	public String getSearchContent() {
		return searchContent;
	}
	public void setSearchContent(String searchContent) {
		this.searchContent = searchContent;
	}
	public String getCarCode() {
		return carCode;
	}
	public void setCarCode(String carCode) {
		this.carCode = carCode;
	}
	public String getCarYear() {
		return carYear;
	}
	public void setCarYear(String carYear) {
		this.carYear = carYear;
	}
	public List<String> getIds() {
		return ids;
	}
	public void setIds(List<String> ids) {
		this.ids = ids;
	}
	public String getGoodsIntroduce() {
		return goodsIntroduce;
	}
	public void setGoodsIntroduce(String goodsIntroduce) {
		this.goodsIntroduce = goodsIntroduce;
	}
	
}